package com.trade.module.daq.repository;

import com.trade.module.daq.entity.FieldInfo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Class Description:
 *
 * @Version v1.0 2017/6/30 0:13
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Repository
public interface FileInfoRepository extends JpaSpecificationExecutor<FieldInfo>,
        PagingAndSortingRepository<FieldInfo,String>{
    /**
     * 根据关联表id查询字段集合
     * @param tableInfoId 关联表
     * @param dataFlag 数据状态
     * @return 字段集合
     */
    List<FieldInfo> findByTableInfoIdAndDataFlag(String tableInfoId, String dataFlag);
}
